<dircopy> : Copy Directory (Folder)
Copies directory including all subdirectories.
Syntax:
<dircopy>("SourceDir", "DestDir", Reserved, Reserved)
SourceDir
Full path to the source directory (e.g., "c:\mydocuments").
DestDir
Full path to the destination directory (e.g., "c:\backup").
Reserved
Must be 0.
Reserved
Must be 0.
Example:
<#> This macro copies directory you select to other
directory you select.
<#>
<cmds>
<msg>(100,100,"Select folder you want to copy.","Message",0)
<var_oper>(vDirSource,"",SELECT_FOLDER,"Select Source Folder","", "0")
<proc_call>(ExitOnCancel,)
<msgoff>
<msg>(100,100,"Select destination folder.","Message",0)
<var_oper>(vDirDest,"",SELECT_FOLDER,"Select Destination Folder","", "0")
<proc_call>(ExitOnCancel,)
<msgoff>
<msg>(100,100,"Folder copy is in progress. Please wait....","Message",0)
<dircopy>("vDirSource","vDirDest",0,0)
<msgoff>
<#> --------------------------------------------------------------------
<proc_def_begin>(ExitOnCancel,)
<if_str>("_vCanceled==1")
<exitmacro>
<endif>
<proc_def_end>
<#> --------------------------------------------------------------------